package com.xmkj.bearuser.pk;

import android.view.View;
import android.widget.TextView;

import com.common.mvp.BaseMvpFragment;
import com.common.mvp.BasePresenter;
import com.common.widget.StarBarView;
import com.common.widget.recyclerview.refresh.recycleview.XRecyclerView;
import com.xmkj.bearuser.R;
import com.xmkj.bearuser.mine.activity.InfoCompileActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

/**
 * Create by leo
 * 创建日期：2018/6/13
 * 描述：
 */

public class PkFragment extends BaseMvpFragment {
    @BindView(R.id.tv_name)
    TextView tvName;
    @BindView(R.id.starbar)
    StarBarView starbar;
    @BindView(R.id.tv_info_weifu)
    TextView tvInfoWeifu;
    @BindView(R.id.tv_jili_rule)
    TextView tvJiliRule;
    @BindView(R.id.tv_jifen_rule)
    TextView tvJifenRule;
    @BindView(R.id.tv_shop_communication)
    TextView tvShopCommunication;
    @BindView(R.id.recyclerview)
    XRecyclerView recyclerview;
    Unbinder unbinder;

    @Override
    protected BasePresenter createPresenterInstance() {
        return null;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_pk;
    }

    @Override
    protected void onViewCreated(View view) {

    }

    @Override
    protected void doLogicFunc() {
        attachClickListener(tvInfoWeifu);
        attachClickListener(tvShopCommunication);
    }

    @Override
    protected void onViewClicked(View view) {
        if (view.getId() == tvInfoWeifu.getId()) {
            gotoActivity(InfoCompileActivity.class);
        }else if(view.getId()==tvShopCommunication.getId()){
            gotoActivity(ShopCommunicationActivity.class);
        }
    }

    @Override
    public void bindKnife() {
        unbinder = ButterKnife.bind(this, view);
    }
}
